package com.example.UserService;

import org.springframework.stereotype.Service;

@Service
public class UserService {
    public boolean register(String username, String password) {
        // 假设这里有注册逻辑
        if (username == null || password == null) {
            throw new IllegalArgumentException("用户名和密码不能为空");
        }
        // 进行注册操作
        return true; // 注册成功
    }
}